package com.tpp.controller;

import com.tpp.pojo.baseVo.BaseResult;
import com.tpp.service.MovieCinemaService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RequestMapping("/MovieCinema")
@RestController

public class MovieCinemaController {

    @Resource
    MovieCinemaService movieCinemaService;

    @RequestMapping("/findByMovieCinemaSchedule")
    public BaseResult findByMovieCinemaSchedule(@RequestParam("movieId")Integer movieId, @RequestParam("cinemaId")Integer cinemaId){
        return movieCinemaService.findByMovieCinemaSchedule(movieId,cinemaId);
    }

}
